{% extends '__admin__.html' %}
{% block page_title %}
{{ g.sitename }}-添加球员
{% endblock %}
{% block admincontent %}
<div>
    <form method='post'  enctype="multipart/form-data">
        <fieldset>
            <legend>录入球员</legend>
            <div class="form-group">
                <label for="nameinput">姓名</label>
                <input name="name" class="form-control text_w2" id="nameinput" type="text" 
                {% if player %} value="{{player['name']}}" {% endif %} placeholder="input name"  required>
            </div>
            <div class="form-group">
                <label for="display_nameinput">昵称</label>
                <input name="display_name" class="form-control text_w2" id="display_nameinput" type="text" 
                {% if player %} value = "{{ player['display_name'] }}" {% endif %}
                placeholder="input nickname" required>

            </div>
            <div class="form-group">
                <label for="valueinput">身价</label>
                <input name="listvalue" class="form-control text_w2" id="valueinput" type="text"
                {% if player %} value = "{{ player['game_value'] }}" {% endif %}  placeholder="input value" required>
            </div>
            <div class="form-group">
                <label for="fileinput">相片</label>
                <input name="file" id="fileinput" type="file"  placeholder="input nickname" >
            </div>
            
             <button type="submit" class="btn btn-default">Submit</button>
        </fieldset>
    </form>
</div>
{% endblock %}
